/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Implementation.SourceCode.XNTgui;

import Implementation.SourceCode.Utilities.HibernateUtil;
import Implementation.SourceCode.entities.Material;
import java.beans.PropertyVetoException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.hibernate.Session;
import org.hibernate.Transaction;

/**
 *
 * @author mrapple
 */
public class XNTUIMain extends javax.swing.JFrame {

    /**
     * Creates new form XNTUIMain
     */
    public XNTUIMain() {
//        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
//        setLocation(dim.width / 2 - this.getSize().width / 2 - 300, dim.height / 2 - this.getSize().height / 2 - 350);


        setTitle("Quản Lý  -  Xuất Nhập Tồn");
        initComponents();
        setSize(600, 700);
        setExtendedState(MAXIMIZED_BOTH);
//        setSize(Toolkit.getDefaultToolkit().getScreenSize().width, Toolkit.getDefaultToolkit().getScreenSize().height);
        try {
            panelMain.setMaximum(true);
        } catch (PropertyVetoException ex) {
            Logger.getLogger(XNTUIMain.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        desktopPane = new javax.swing.JDesktopPane();
        panelMain = new javax.swing.JInternalFrame();
        btnBaoCao1 = new javax.swing.JButton();
        panHeader = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        panWest = new javax.swing.JPanel();
        panEast = new javax.swing.JPanel();
        panFooter = new javax.swing.JPanel();
        btnDong = new javax.swing.JButton();
        panCenter = new javax.swing.JPanel();
        btnQuanLyNguyenLieu = new javax.swing.JButton();
        btnQuanLyXNT = new javax.swing.JButton();
        btnXuatBaoCao = new javax.swing.JButton();
        btnQuanLyThanhPham = new javax.swing.JButton();
        menuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        openMenuItem = new javax.swing.JMenuItem();
        saveMenuItem = new javax.swing.JMenuItem();
        saveAsMenuItem = new javax.swing.JMenuItem();
        exitMenuItem = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 48)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Settings-icon.png"))); // NOI18N
        jLabel1.setText("Quản Lý");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        panelMain.setBorder(null);
        panelMain.setClosable(true);
        panelMain.setIconifiable(true);
        panelMain.setMaximizable(true);
        panelMain.setResizable(true);
        panelMain.setVisible(true);

        btnBaoCao1.setBackground(new java.awt.Color(0, 51, 51));
        btnBaoCao1.setFont(new java.awt.Font("Tahoma", 0, 36)); // NOI18N
        btnBaoCao1.setForeground(new java.awt.Color(255, 255, 255));
        btnBaoCao1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/emblem-symbolic-link.png"))); // NOI18N
        btnBaoCao1.setText("Quản Lý Tên Viết Tắt");
        btnBaoCao1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnBaoCao1.setPreferredSize(new java.awt.Dimension(111, 31));
        btnBaoCao1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBaoCao1ActionPerformed(evt);
            }
        });
        panelMain.getContentPane().add(btnBaoCao1, java.awt.BorderLayout.CENTER);

        panHeader.setBackground(new java.awt.Color(0, 102, 0));
        panHeader.setForeground(new java.awt.Color(51, 255, 51));
        panHeader.setMinimumSize(new java.awt.Dimension(329, 150));
        panHeader.setPreferredSize(new java.awt.Dimension(406, 130));
        panHeader.setLayout(new java.awt.BorderLayout());

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 48)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Settings-icon.png"))); // NOI18N
        jLabel2.setText("Xuất Nhập Tồn");
        panHeader.add(jLabel2, java.awt.BorderLayout.CENTER);

        panelMain.getContentPane().add(panHeader, java.awt.BorderLayout.NORTH);

        panWest.setBackground(new java.awt.Color(0, 102, 0));
        panWest.setPreferredSize(new java.awt.Dimension(10, 200));

        javax.swing.GroupLayout panWestLayout = new javax.swing.GroupLayout(panWest);
        panWest.setLayout(panWestLayout);
        panWestLayout.setHorizontalGroup(
            panWestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );
        panWestLayout.setVerticalGroup(
            panWestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 368, Short.MAX_VALUE)
        );

        panelMain.getContentPane().add(panWest, java.awt.BorderLayout.WEST);

        panEast.setBackground(new java.awt.Color(0, 102, 0));
        panEast.setPreferredSize(new java.awt.Dimension(10, 200));

        javax.swing.GroupLayout panEastLayout = new javax.swing.GroupLayout(panEast);
        panEast.setLayout(panEastLayout);
        panEastLayout.setHorizontalGroup(
            panEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 10, Short.MAX_VALUE)
        );
        panEastLayout.setVerticalGroup(
            panEastLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 368, Short.MAX_VALUE)
        );

        panelMain.getContentPane().add(panEast, java.awt.BorderLayout.EAST);

        panFooter.setBackground(new java.awt.Color(0, 102, 0));

        btnDong.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        btnDong.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Close_Box_Red.png"))); // NOI18N
        btnDong.setText("Đóng");
        btnDong.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDongActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panFooterLayout = new javax.swing.GroupLayout(panFooter);
        panFooter.setLayout(panFooterLayout);
        panFooterLayout.setHorizontalGroup(
            panFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panFooterLayout.createSequentialGroup()
                .addContainerGap(377, Short.MAX_VALUE)
                .addComponent(btnDong)
                .addContainerGap())
        );
        panFooterLayout.setVerticalGroup(
            panFooterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panFooterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnDong)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelMain.getContentPane().add(panFooter, java.awt.BorderLayout.SOUTH);

        panCenter.setBackground(new java.awt.Color(255, 255, 255));

        btnQuanLyNguyenLieu.setBackground(new java.awt.Color(0, 51, 51));
        btnQuanLyNguyenLieu.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        btnQuanLyNguyenLieu.setForeground(new java.awt.Color(255, 255, 255));
        btnQuanLyNguyenLieu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Devices-input-tablet-icon.png"))); // NOI18N
        btnQuanLyNguyenLieu.setText("Quản Lý Nguyên Liệu (Ctrl+N)");
        btnQuanLyNguyenLieu.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnQuanLyNguyenLieu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuanLyNguyenLieuActionPerformed(evt);
            }
        });

        btnQuanLyXNT.setBackground(new java.awt.Color(0, 51, 51));
        btnQuanLyXNT.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        btnQuanLyXNT.setForeground(new java.awt.Color(255, 255, 255));
        btnQuanLyXNT.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Devices-input-tablet-icon.png"))); // NOI18N
        btnQuanLyXNT.setText("Quản Lý XNT (Ctrl+X)");
        btnQuanLyXNT.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnQuanLyXNT.setPreferredSize(new java.awt.Dimension(111, 31));
        btnQuanLyXNT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuanLyXNTActionPerformed(evt);
            }
        });

        btnXuatBaoCao.setBackground(new java.awt.Color(0, 51, 51));
        btnXuatBaoCao.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        btnXuatBaoCao.setForeground(new java.awt.Color(255, 255, 255));
        btnXuatBaoCao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Apps-kchart-icon.png"))); // NOI18N
        btnXuatBaoCao.setText("Xuất Báo Cáo (Ctrl+B)");
        btnXuatBaoCao.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnXuatBaoCao.setPreferredSize(new java.awt.Dimension(111, 31));
        btnXuatBaoCao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnXuatBaoCaoActionPerformed(evt);
            }
        });

        btnQuanLyThanhPham.setBackground(new java.awt.Color(0, 51, 51));
        btnQuanLyThanhPham.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
        btnQuanLyThanhPham.setForeground(new java.awt.Color(255, 255, 255));
        btnQuanLyThanhPham.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/Devices-input-tablet-icon.png"))); // NOI18N
        btnQuanLyThanhPham.setText("Quản Lý Thành Phẩm (Ctrl+T)");
        btnQuanLyThanhPham.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        btnQuanLyThanhPham.setPreferredSize(new java.awt.Dimension(111, 31));
        btnQuanLyThanhPham.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnQuanLyThanhPhamActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panCenterLayout = new javax.swing.GroupLayout(panCenter);
        panCenter.setLayout(panCenterLayout);
        panCenterLayout.setHorizontalGroup(
            panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnQuanLyNguyenLieu, javax.swing.GroupLayout.DEFAULT_SIZE, 480, Short.MAX_VALUE)
                    .addComponent(btnXuatBaoCao, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnQuanLyXNT, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btnQuanLyThanhPham, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        panCenterLayout.setVerticalGroup(
            panCenterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panCenterLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnQuanLyXNT, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnQuanLyNguyenLieu, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnQuanLyThanhPham, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnXuatBaoCao, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                .addContainerGap())
        );

        panelMain.getContentPane().add(panCenter, java.awt.BorderLayout.CENTER);

        panelMain.setBounds(10, 10, 520, 560);
        desktopPane.add(panelMain, javax.swing.JLayeredPane.DEFAULT_LAYER);

        getContentPane().add(desktopPane, java.awt.BorderLayout.CENTER);

        fileMenu.setMnemonic('f');
        fileMenu.setText("Quản Lý");
        fileMenu.setFont(new java.awt.Font("Segoe UI", 1, 20)); // NOI18N

        openMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
        openMenuItem.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        openMenuItem.setMnemonic('o');
        openMenuItem.setText("Xuất Nhập Tồn");
        openMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openMenuItemActionPerformed(evt);
            }
        });
        fileMenu.add(openMenuItem);

        saveMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        saveMenuItem.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        saveMenuItem.setMnemonic('s');
        saveMenuItem.setText("Quản Lý Nguyên Liệu");
        saveMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveMenuItemActionPerformed(evt);
            }
        });
        fileMenu.add(saveMenuItem);

        saveAsMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
        saveAsMenuItem.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        saveAsMenuItem.setMnemonic('a');
        saveAsMenuItem.setText("Quản Lý Thành Phẩm");
        fileMenu.add(saveAsMenuItem);

        exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
        exitMenuItem.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        exitMenuItem.setMnemonic('x');
        exitMenuItem.setText("Xuất Báo Cáo");
        exitMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitMenuItemActionPerformed(evt);
            }
        });
        fileMenu.add(exitMenuItem);

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem1.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
        jMenuItem1.setText("Đóng");
        fileMenu.add(jMenuItem1);

        menuBar.add(fileMenu);

        setJMenuBar(menuBar);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitMenuItemActionPerformed
        System.exit(0);
    }//GEN-LAST:event_exitMenuItemActionPerformed
    UIProductManage internal;
    private void openMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openMenuItemActionPerformed
        try {
            internal = new UIProductManage();
            desktopPane.add(internal);
            desktopPane.setSelectedFrame(internal);
            internal.setMaximum(true);
            internal.setVisible(true);
            internal.setSelected(true);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }//GEN-LAST:event_openMenuItemActionPerformed

    private void saveMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveMenuItemActionPerformed
        try {
//            desktopPane.removeAll();
//            desktopPane.add(panelMain);

            desktopPane.setSelectedFrame(panelMain);
            panelMain.setMaximum(true);
            panelMain.setVisible(true);
            internal.setVisible(false);
        } catch (PropertyVetoException ex) {
            Logger.getLogger(XNTUIMain.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_saveMenuItemActionPerformed

    private void btnBaoCao1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBaoCao1ActionPerformed
//        UIVietTat viettat = new UIVietTat();
//        viettat.setTitle("Báo Cáo Chi - Quản Lý Tên Viết Tắt - mrkingdom75@gmail.com");
//        viettat.setVisible(true);
    }//GEN-LAST:event_btnBaoCao1ActionPerformed

    private void btnDongActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDongActionPerformed
        System.exit(0);
    }//GEN-LAST:event_btnDongActionPerformed

    private void btnQuanLyNguyenLieuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuanLyNguyenLieuActionPerformed
        // quan ly nugyen lieu
        try {
            desktopPane.removeAll();
            UIMaterialManage material = new UIMaterialManage();
            material.setVisible(true);
            desktopPane.add(material);
            material.setMaximum(true);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }//GEN-LAST:event_btnQuanLyNguyenLieuActionPerformed

    private void btnQuanLyXNTActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuanLyXNTActionPerformed
        try {
            Session session = HibernateUtil.getSessionFactory().openSession();
            Transaction tx = session.beginTransaction();
            List<Material> lstMarterial = session.createQuery("from Material").list();
            String temp = "";
            for (Material mar1 : lstMarterial) {
                System.out.println("test : " + mar1.getShortName() + " name :" + mar1.getName());
            }
//            for (int i = 0; i < 1000; i++) {
//                Material mar = new Material();
//                mar.setName("thịt heo");
//                mar.setShortName("thit heo");
//                mar.setCode("th");
//                session.save(mar);
//            }
//            JOptionPane.showMessageDialog(this, temp);
            tx.commit();
            session.close();
//            HibernateUtil.shutdown();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }//GEN-LAST:event_btnQuanLyXNTActionPerformed

    private void btnXuatBaoCaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnXuatBaoCaoActionPerformed
//        Session session = HibernateUtil.getSessionFactory().openSession();
//        Transaction tx = session.beginTransaction();
//        session.createQuery("delete WareHouse").executeUpdate();
//        tx.commit();
//        session.close();
//        
//        WareHouse wareHouse = new WareHouse();
//        wareHouse.setName("KHO BẾP");
//        wareHouse.save();
//
//        WareHouse wareHouse1 = new WareHouse();
//        wareHouse1.setName("KHO BIA");
//        wareHouse1.save();
//
//        WareHouse wareHouse2 = new WareHouse();
//        wareHouse2.setName("KHO PHA CHẾ");
//        wareHouse2.save();
    }//GEN-LAST:event_btnXuatBaoCaoActionPerformed

    private void btnQuanLyThanhPhamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnQuanLyThanhPhamActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnQuanLyThanhPhamActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(XNTUIMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(XNTUIMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(XNTUIMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(XNTUIMain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new XNTUIMain().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBaoCao1;
    private javax.swing.JButton btnDong;
    private javax.swing.JButton btnQuanLyNguyenLieu;
    private javax.swing.JButton btnQuanLyThanhPham;
    private javax.swing.JButton btnQuanLyXNT;
    private javax.swing.JButton btnXuatBaoCao;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenuItem openMenuItem;
    private javax.swing.JPanel panCenter;
    private javax.swing.JPanel panEast;
    private javax.swing.JPanel panFooter;
    private javax.swing.JPanel panHeader;
    private javax.swing.JPanel panWest;
    private javax.swing.JInternalFrame panelMain;
    private javax.swing.JMenuItem saveAsMenuItem;
    private javax.swing.JMenuItem saveMenuItem;
    // End of variables declaration//GEN-END:variables
}
